<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title>列表页</title>
		<link rel="stylesheet" type="text/css" href="./Public/Home/css/index.css"/>
		<link rel="stylesheet" type="text/css" href="./Public/Home/css/list.css"/>
	</head>
	<body>
	
	{{include file="../Common/header"}}
	
	<!--列表分类开始-->
	<div id="module">
		<ul class="breadcrumb"></ul>
		<div class="wrapper">
			<div class="pic">
				<div class="photo">
					<img src="./Public/Home/images/list1.jpg"/>
				</div>
				<div class="photo">
					<img src="./Public/Home/images/list1.jpg"/>
				</div>
				<div class="photo">
					<img src="./Public/Home/images/list1.jpg"/>
				</div>
				<div class="photo">
					<img src="./Public/Home/images/list1.jpg"/>
				</div>
				<div class="photo">
					<img src="./Public/Home/images/list1.jpg"/>
				</div>
			
			</div>
			<div class="s-module">
				{{foreach from="$finalAttr" key="$k" value="$v"}}
				{{if value="!empty($v['name'])"}}
				<?php
                    $temp=$param;
                    $temp[$k]=0;
				?>
				<div class="s-label">
					{{$v['name']}}：
				</div>
				<ul class="clearfix">
						<li class="active">
                            <a href="{{U('index',['cid'=>$_GET['cid'],'param'=>implode('_',$temp)])}}"{{if value="$param[$k] eq 0"}}style="color:#009B72;"{{endif}}>全部</a>
						</li>
					{{foreach from="$v['value']" value="$value"}}
                        <?php
                            $temp[$k]=$value['gaid'];
//                            p($temp[$k]);
                        ?>
						<li>
							<a href="{{U('index',['cid'=>$_GET['cid'],'param'=>implode('_',$temp)])}}" {{if value="$value['gaid'] eq $param[$k]"}}style="color:#009B72;"{{endif}}>{{$value['gavalue']}}</a>
						</li>
					{{endforeach}}
				</ul>
				{{endif}}
				{{endforeach}}
			</div>
			
			

	</div>
	<!--列表分类结束-->
	
	<!--列表内容开始-->
	<div class="apper">
		<div id="category">


		</div>
		<div class="products">
			<div id="wapper">
                {{foreach from="$data" value="$v"}}
				<div class="box">
					<div class="box-ribbon">
						<img src="./Public/Home/images/jiaobiao1.png"/>
					</div>
					<div class="box-photo">
						<a href="{{U('Goods/index',array('gid'=>$v['gid']))}}"><img src="{{$v['pic']}}"style="width: 216px;height: 250px;"/></a>
					</div>
					<span class="box-heading">
						<a href="{{U('Goods/index',array('gid'=>$v['gid']))}}" style="color: black;">{{$v['gname']}}</a>
					</span>

					<a href="{{U('Goods/index',array('gid'=>$v['gid']))}}"><p class="box-price">￥{{$v['shopprice']}}</p></a>
				</div>
                {{endforeach}}
				
			</div>
			
		</div>
	</div>
	<!--列表内容结束-->
	
	
	
	{{include file="../Common/footer"}}
		
		
	</body>
</html>
